package com.rpoonolly.simplegame;

import java.awt.Graphics;

import com.rpoonolly.simplegame.core.GameEngine;
import com.rpoonolly.simplegame.core.Renderer;
import com.rpoonolly.simplegame.renderer.SimpleSwingRenderer;

public class SwingEngine extends GameEngine {
	
	public void render(Graphics graphics) {
		SimpleSwingRenderer swingRenderer;
		for(Renderer renderer : renderers) {
			swingRenderer = (SimpleSwingRenderer) renderer;
			swingRenderer.setGraphics(graphics);
		}
		
		render();
	}
}
